package testDriver;

import hibernate.DAOStation;
import hibernate.DTOStationList;
import hibernate.Station;

import java.util.List;


/*
 * Question1: Station ayant le plus changé de définition (version), 
 */
public class TestingQuestion1 
{
	public static final int MAX_DISPLAY = 5;
	
	public static void main(String[] args) {
		DAOStation daoStation = new DAOStation();
		DTOStationList dtoStationList = daoStation.getMostChangedVersion();
		List<Station> list = dtoStationList.getStationList();
		int count = 0;
		if (list != null) {
			System.out.println("Station ayant le plus changé de définition:");
			for (Station station : list) {
				System.out.println(station.toString());
				count ++;
				if (count == MAX_DISPLAY) break;				
			}
		}
	}
}
